<?php

// Frapify Keychain - wfk-api-connection.php
// Author - Tom Guthrie (http://frapify.freehostia.com/)
//
// $Id: wfk-api-connection.php R24 2007-01-11 tomguthrie $
//

$connector = 'http://frapifykeychain.freehostia.com/'; // note that changing this will cause the plugin to run incorrectly

// Check if we can connect to server.
function wfk_CheckConnection() {

	global $connector;

	$file = file($connect . 'connect.php');

	if ( $file[0] == 'connection' ) {
		
		return true;
		
	}
	
	return true; // CHANGE TO FALSE LATER																<---
	
}

// mis
function doDisable () {
	
	echo 'disabled="disabled" ';
	
}

function wfk_pageloader() {

?>
<div class="wrap">
	<div class="titlefrap">Debug Page Loader</div>
	<p>Use this form to select a page to test its design, will be removed as soon as the main framework is done.</p>
	<p class="helper">
		<a href="?page=wp-frapify-keychain.php&frapify=sitekey">Site Key</a>
	  - <a href="?page=wp-frapify-keychain.php&frapify=sitekey-confirm">Site Key Confirm</a>
	  - <a href="?page=wp-frapify-keychain.php&frapify=sitekey-error">Site Key Error</a>
	  - <a href="?page=wp-frapify-keychain.php&frapify=home">Home</a>
	</p>
</div>
<?php
	
}

?>